package com.wentao.thisFacade.business;

import com.wentao.thisCommon.model.RequestBase;
import com.wentao.thisCommon.model.ResultBase;
import com.wentao.thisFacade.domain.reqeust.PayRequest;
import com.wentao.thisFacade.domain.result.WxPayResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/pay")
public interface PayCtrInterface {

    /**
     * 微信支付
     *
     * @param entity 微信支付参数
     * @return 微信支付结果
     * @throws Exception 异常信息
     */
    @PostMapping("/WxPay")
    ResultBase<WxPayResult> wxPay(@RequestBody RequestBase<PayRequest> entity) throws Exception;
}
